package com.check.checksamejourney.response;

public enum ResponseState {

    SUCCESS(0,"接口调用成功"),

    GET_WXAPP_OPEN_ID_FAILED(4000,"获取openId失败"),

    TOKEN_INVALID(2001,"token无效"),

    DATABASE_OPERATION_FAILED(1001,"数据库操作失败");

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 状态信息
     */
    private String msg;

    ResponseState(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
